package com.cuij.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cuij.entity.Result;
import com.cuij.service.orderCustService;

@Controller
@RequestMapping("/cust")
public class orderCustController {

    @Resource
    private orderCustService ordercustservice;

    @RequestMapping("/findcustinfo.do")
    @ResponseBody
    public Result findCustInfoExecute(String use_id) {
        Result result = ordercustservice.findCustInfoByUseid(use_id);
        return result;
    }

    @RequestMapping("/saveaddress.do")
    @ResponseBody
    public Result saveAddressExecute(String use_id, String cust_address1, String cust_address2, String cust_address3,
            String cust_address4, String cust_address5) {
        Result result = ordercustservice.saveAddress(use_id, cust_address1, cust_address2, cust_address3,
                cust_address4, cust_address5);
        return result;
    }
}
